package com.cxx.purchasecharge.dal.auditlog;

import org.springframework.data.jpa.repository.Query;
import org.springframework.transaction.annotation.Transactional;

import com.cxx.purchasecharge.core.model.persistence.auditlog.LogEventType;
import com.cxx.purchasecharge.dal.common.GenericCRUDDao;

@Transactional
public interface LogEventTypeDao extends GenericCRUDDao <LogEventType, Long>
{

    public LogEventType findById (long id);

    @Query (value = "select et from LogEventType et where et.name=?1")
    public LogEventType findByName (String name);

}
